package com.dhcc.cdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.entity.DataEntity;

import java.math.BigDecimal;


/**
 * 费用
 * 
 * @ClassName: CdcExpenseEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:08
 */
@TableName("t_cdc_bs_expense") 
public class CdcExpenseEntity extends DataEntity<CdcExpenseEntity> {
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	//就诊记录
	private Long episodeId;	
	//总费
	private BigDecimal costs;
	//自付费
	private BigDecimal pays;
	//费用类型
	private Long busExpenseTypeId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busExpenseType;
	//业务数据类型
	private Long dataId;	
    @TableField(exist = false)
    private CdcDataEntity data;
	//是否有效
	private Integer isActive;	

	public CdcDictionaryEntity getBusExpenseType() {
        return busExpenseType;
    }
    public void setBusExpenseType(CdcDictionaryEntity busExpenseType) {
        this.busExpenseType = busExpenseType;
    }
    public CdcDataEntity getData() {
        return data;
    }
    public void setData(CdcDataEntity data) {
        this.data = data;
    }
    /**
	 * 设置：就诊记录
	 */
	public void setEpisodeId(Long episodeId) {
		this.episodeId = episodeId;
	}
	/**
	 * 获取：就诊记录
	 */
	public Long getEpisodeId() {
		return episodeId;
	}
	/**
	 * 设置：总费
	 */
	public void setCosts(BigDecimal costs) {
		this.costs = costs;
	}
	/**
	 * 获取：总费
	 */
	public BigDecimal getCosts() {
		return costs;
	}
	/**
	 * 设置：自付费
	 */
	public void setPays(BigDecimal pays) {
		this.pays = pays;
	}
	/**
	 * 获取：自付费
	 */
	public BigDecimal getPays() {
		return pays;
	}
	/**
	 * 设置：费用类型
	 */
	public void setBusExpenseTypeId(Long busExpenseTypeId) {
		this.busExpenseTypeId = busExpenseTypeId;
	}
	/**
	 * 获取：费用类型
	 */
	public Long getBusExpenseTypeId() {
		return busExpenseTypeId;
	}
	/**
	 * 设置：业务数据类型
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：业务数据类型
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
}
